#ifndef __BSP_AHT21_H__
#define __BSP_AHT21_H__

#include "stm32f4xx.h"		/* STM32F4xx头文件 */

#define RCC_AHT21_PORT (RCC_AHB1Periph_GPIOB)		/* GPIO端口时钟 */

#define AHT21_SDA_PORT	GPIOB
#define AHT21_SDA_PIN	GPIO_Pin_13

#define AHT21_SCL_PORT	GPIOB
#define AHT21_SCL_PIN	GPIO_Pin_14

#define AHT21_I2C_ADDR 0x70

void bsp_aht21_init(void); // 初始化AHT21
uint8_t bsp_aht21_read_status(void);
void bsp_aht21_reset(void);
uint8_t bsp_aht21_read_data(float *humidity,float *temperature); // 读取AHT21数据


#endif /* __BSP_AHT21_H__ */
